//.banner_left
var li=document.querySelectorAll('.banner_left>ul>li');
for(var i=0;i<li.length;i++){
	li[i].onmouseover=function(){
		this.style.background='#F3F3F3';
	}
	li[i].onmouseout=function(){
		this.style.background='';
	}
}
//轮播
//自己动起来
//1.找到图片
var li1=document.querySelectorAll('.pic_num>li');
//2.找到圆点
var lis1=document.querySelectorAll('.num>li');
var timer;
var b=0;
function play(){
	timer=setInterval(function(){
        li1[b].style.display='none';
        lis1[b].style.background='#000';
        b++;
        if(b>6){
        	b=0;
    	}
        li1[b].style.display='block';
        lis1[b].style.background='#f00';
     },1000)
    }
play();
//banner_c_bottom
var li=document.querySelectorAll('.banner_c_bottom>ul>li>img');
for(var i=0;i<li.length;i++){
	li[i].onmouseover=function(){
		this.style.marginLeft='5px';
	}
	li[i].onmouseout=function(){
		this.style.marginLeft='';
	}
}

//main
var li=document.querySelectorAll('.main_center>ul>li>img');
for(var i=0;i<li.length;i++){
	li[i].onmouseover=function(){
		this.style.border='1px solid #f00';
	}
	li[i].onmouseout=function(){
		this.style.border='';
	}
}
//活动
var a=document.querySelectorAll('.huodong>div>ul>li>a');
for(var i=0;i<a.length;i++){
	a[i].onmouseover=function(){
		this.style.color='#f00';
		this.style.fontSize='14px';
	}
	a[i].onmouseout=function(){
		this.style.color='';
		this.style.fontSize='';
	}
}

//指南
var a=document.querySelectorAll('.guild>div>div>ul>li>a');
for(var i=0;i<a.length;i++){
	a[i].onmouseover=function(){
		this.style.textDecoration='underline';
	}
	a[i].onmouseout=function(){
		this.style.textDecoration='';
	}
}

//页脚
var a=document.querySelectorAll('.footer>div>ul>li>a');
for(var i=0;i<a.length;i++){
	a[i].onmouseover=function(){
		this.style.textDecoration='underline';
	}
	a[i].onmouseout=function(){
		this.style.textDecoration='';
	}
}